/*
 * Copyright (c) 2023 Huawei Device Co., Ltd.
 * Licensed under the Apache License,Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import {SongModel} from './SearchModel'

export class AllPlayListModel {
    songs:SongModel[]
    privileges:object[]
    code:number
}

export class PlayListDetailModel {
    playlist:{
        id:string
        name: string,
        coverImgId: number,
        coverImgUrl: string,
        coverImgId_str: string,
        adType: number,
        userId: number,
        createTime: number,
        status: number,
        opRecommend: boolean,
        highQuality: boolean,
        newImported: boolean,
        updateTime: number,
        trackCount: number,
        specialType: number,
        privacy: number,
        trackUpdateTime: number,
        commentThreadId: string,
        playCount: number,
        trackNumberUpdateTime: number,
        subscribedCount: number,
        cloudTrackCount: number,
        ordered: boolean,
        description: object,
        tags: [],
        updateFrequency: object,
        backgroundCoverId: number,
        backgroundCoverUrl: object,
        titleImage: number,
        titleImageUrl: object,
        englishTitle: object,
        officialPlaylistType: object,
        copied: boolean,
        relateResType: object,
        subscribers: [],
        subscribed: boolean,
    }
    urls:string
    privileges:object
    code:number
}

export class RecommendSongsModel {
    dailySongs: Array<SongModel>
    recommendReasons: Array<{
        songId: number,
        reason: string,
        reasonId: string,
        targetUrl:string
    }>
}
